import request from "@/utils/request";

export function login(data) {
    return request({
        //url: '/vue-admin-template/user/login',
        url: "/v1/UserLogin",
        method: "post",
        data,
    });
}

export function getInfo(token) {
    return request({
        url: "/v1/UserLogin",
        method: "get",
        params: { token },
    });
}

// export function logout() {
//     return request({
//         url: "/znywpt_vue/src/api/user/logout",
//         method: "post",
//         baseURL: "http://localhost:9528/",
//     });
// }